package cn.jbolt.core.kit;

import java.io.Serializable;

/**
 * JBolt平台租户信息
 * @ClassName:  JBoltSaasTenant
 * @author: JFinal学院-小木 QQ：909854136
 * @date:   2022年3月10日
 */
public class JBoltSaasTenant implements Serializable,Cloneable {
	private Object id;
	private String sn;
	private String name;
	private boolean isSelfRequest;
	private boolean accessible;
	private String errorMsg;
	private JBoltSaasTenant() {
	}
	public static JBoltSaasTenant createBySn(String sn) {
		return new JBoltSaasTenant().setSn(sn);
	}
	public static JBoltSaasTenant createById(Object id) {
		return new JBoltSaasTenant().setId(id);
	}
	public Object getId() {
		return id;
	}
	public JBoltSaasTenant setId(Object id) {
		this.id = id;
		return this;
	}
	public String getSn() {
		return sn;
	}
	public JBoltSaasTenant setSn(String sn) {
		this.sn = sn;
		return this;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isSelfRequest() {
		return isSelfRequest;
	}
	public JBoltSaasTenant setSelfRequest(boolean isSelfRequest) {
		this.isSelfRequest = isSelfRequest;
		return this;
	}
	public boolean isAccessible() {
		return accessible;
	}
	public void setAccessible(boolean accessible) {
		this.accessible = accessible;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
}
